/**
 *
 */
package com.ybkj.daijia.server;

import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * @author Shine
 *
 */
public class AuthenticationToken extends UsernamePasswordToken {

    /**
     *
     */
    private static final long serialVersionUID = 8829404761307494928L;

    private String answer;

    private String IPAddress;

    private String vcode;

    private nl.captcha.Captcha captcha; // 验证码


    public AuthenticationToken(String username, String password,
        boolean rememberMe, String host, String answer, String IPAddress, String vcode,
        nl.captcha.Captcha captcha) {
        super(username, password, rememberMe, host);
        this.IPAddress = IPAddress;
        this.vcode = vcode;
        this.captcha = captcha;
        this.answer = answer;

    }


    public String getAnswer() {
        return answer;
    }


    public void setAnswer(String answer) {
        this.answer = answer;
    }


    public nl.captcha.Captcha getCaptcha() {
        return captcha;
    }


    public void setCaptcha(nl.captcha.Captcha captcha) {
        this.captcha = captcha;
    }


    public String getIPAddress() {
        return IPAddress;
    }


    public void setIPAddress(String iPAddress) {
        IPAddress = iPAddress;
    }


    public String getVcode() {
        return vcode;
    }


    public void setVcode(String vcode) {
        this.vcode = vcode;
    }


}
